﻿using System;
using System.Data;
using KPIS.GERP.GBMS.DAL;
using KPIS.GERP.GBMS.DALFactory;
using KPIS.GERP.GBMS.IBLL;

namespace KPIS.GERP.GBMS.BLL
{
    public class ProjectReaderDtlsBLL : IProjectReaderDtlsBLL
    {
        private static readonly IProjectReaderDtlsDAL dal = DataAccess.CreateProjectReader();


        public void Insert(string bgm_proj_seq, string strTitle, string strDes, Nullable<DateTime> dtmStart, Nullable<DateTime> dtmEnd, string strStatus, string strEmpSeq)
        {
            dal.Insert(bgm_proj_seq, strTitle, strDes, dtmStart, dtmEnd, strStatus, strEmpSeq);
        }

        public void Update(string strBgmProjJobAssignSeq, string bgm_proj_seq, string strTitle, string strDes, Nullable<DateTime> dtmStart, Nullable<DateTime> dtmEnd, string strStatus, string strEmpSeq)
        {
            dal.Update(strBgmProjJobAssignSeq, bgm_proj_seq, strTitle, strDes, dtmStart, dtmEnd, strStatus, strEmpSeq);
        }

        public void Delete(string strProjJobAssign)
        {
            dal.Delete(strProjJobAssign);
        }

        public DataTable Search(string strBgmProjJobAssignSeq, string bgm_proj_seq, string strTitle, string strDes
            , Nullable<DateTime> strStart, Nullable<DateTime> strEnd, string strStatus)
        {
            return dal.Search(strBgmProjJobAssignSeq, bgm_proj_seq, strTitle, strDes, strStart, strEnd, strStatus);
        }

        public DataTable Loadjobstatus()
        {
           return dal.Loadjobstatus();
        }
    }
}
